package model

import (
	"github.com/volatiletech/null"
	"time"
)

type Trade struct {
	ID             string      `bson:"id" json:"id" toml:"id" yaml:"id"`
	ExchangeNameID string      `bson:"exchange_name_id" json:"exchange_name_id" toml:"exchange_name_id" yaml:"exchange_name_id"`
	Tid            null.String `bson:"tid" json:"tid,omitempty" toml:"tid" yaml:"tid,omitempty"`
	Base           string      `bson:"base" json:"base" toml:"base" yaml:"base"`
	Quote          string      `bson:"quote" json:"quote" toml:"quote" yaml:"quote"`
	Asset          string      `bson:"asset" json:"asset" toml:"asset" yaml:"asset"`
	Price          float64     `bson:"price" json:"price" toml:"price" yaml:"price"`
	Amount         float64     `bson:"amount" json:"amount" toml:"amount" yaml:"amount"`
	Side           null.String `bson:"side" json:"side,omitempty" toml:"side" yaml:"side,omitempty"`
	Timestamp      time.Time   `bson:"timestamp" json:"timestamp" toml:"timestamp" yaml:"timestamp"`
}
